import upload from '@/utils/upload'
import request from '@/utils/request'

// 用户密码重置
export function updateUserPwd(oldPassword, newPassword) {
  const data = {
    oldPassword,
    newPassword
  }
  return request({
    url: '/system/user/profile/updatePwd',
    method: 'put',
    params: data
  })
}

// 查询用户个人信息
export function getUserProfile() {
  return request({
    url: '/system/user/profile',
    method: 'get'
  })
}
export function getJyViewDetail(data) {
  return request({
    url: '/bs/statistic/operate/info',
    method: 'get',
    data
  })
}
export function getJyViewRank(data) {
  return request({
    url: '/bs/statistic/operate/sort',
    method: 'get',
    data
  })
}
export function getLlDetail(data) {
  return request({
    url: '/bs/statistic/flow/info',
    method: 'get',
    data
  })
}
export function getLlChart(data) {
  return request({
    url: '/bs/statistic/flow/sort',
    method: 'get',
    data
  })
}
